﻿using Hotel.Domain.Audit.Implementation;
using Hotel.Domain.Audit.Interfaces;
using Hotel.Domain.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Hotel.Domain
{   
    public class Menu : FullAuditedEntity, IFullAuditedObject
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public long MenuId { get; set; }
        /// <summary>        
        /// 菜单名称
        /// </summary>
        public string MenuName{ get; set; }
        /// <summary>        
        /// 菜单类型
        /// </summary>
        public MenuType MenuType { get; set; }
        /// <summary>        
        ///菜单路由
        /// </summary>
        public string MenuRoute{ get; set; }
        /// <summary>        
        /// 父ID
        /// </summary>
        public long ParentId{ get; set; }
        /// <summary>        
        ///菜单图标
        /// </summary>
        public string MenuIcon { get; set; }
        /// <summary>
        /// 树
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<Menu> Child { get; set; }
    }
 }